package behavioral.observer;

/**
 * @ClassName: WakeUpEvent
 * @Description: 观察者与被观察者传递的消息/事件
 * @Author: liu-hao
 * @Date: 2023-04-09 11:19
 * @Version: 1.0
 **/
public class WakeUpEvent extends Event<Child> {
    long timestamp;
    String loc;
    Child source;

    public WakeUpEvent(long timestamp, String loc, Child source) {
        this.timestamp = timestamp;
        this.loc = loc;
        this.source = source;
    }

    @Override
    Child getSource() {
        return source;
    }
}
